package com.gtlab1207.br_awareness.models.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(callSuper=false)
public class SecurityEvent extends BaseDomain{

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date eventTime;
    private String securityEvent;
    private String ip;
    private String eventType;
    private String createBy;
    private String updateBy;
    private Double score;
    private Integer state;
}
